<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = ['小王', '小李', '小赵'];
        let arr2 = ['小李', '小高', '小赵'];

        // let arr3 = arr.filter(item => {
        //     let res = arr2.find(item2 => {
        //         return item2 === item;
        //     })
        //     return res;
        // })

        let [...arr3] =new Set(arr.filter(item =>arr2.find(item2 =>item2 === item)));

        console.log(arr3);
    </script>
</body>

</html>